                  <div class="resume1-name">
                    	<%#=@user.full_name -%>

                    </div>
                    <div class="resume1-image" id="ad-image">
                      <%if (@imagescount==0) -%>
                        <%=link_to image_tag("user-account-image.png",:width=>"92x",:align=>"left", :border=>"0px") , "#" -%>
                      <%else %>
                        <%=image_tag "../attachments/"+@firstimage.id.to_s+"/"+@firstimage.filename,:width=>"92px",:align=>"left", :border=>"0px" -%>
                      <%end -%>
                      <%if (@imagescount!=0) -%>
                      <div class="enlarge-part">
                        <%= link_to_remote  image_tag("enlarge-icon.jpg", :border=>"0px", :width=> "14px",:align=>"absmiddle") ,:url => {:controller=>"advertisments",:action => "full_image",:id => @advertisment , :imageid => @firstimage}, :update => "details" -%>
                        </div>
                        <%end -%>
                        <div class="thumbnails">
                        	<ul>
                            	<% @images.each do |image|-%>
                                  <li>
                                    <%= link_to_remote image_tag("../attachments/"+image.id.to_s+"/"+image.filename, :border=>"0px", :width=> "18px"),  :url => {:controller=>"advertisments",:action => "swap_image",:id => @advertisment,:imageid => image}, :update => "ad-image",:html=>{:onclick=>"showadtabs(document, 'li', 'resume1-tab-selected','');$('photos').setAttribute('class','resume1-tab-selected','');"} -%>
                                  </li>
                                 <%end -%>
                            </ul>
                        </div>
                        <div class="comments-part">
                            <%= link_to_remote image_tag("comments-icon.jpg", :border=>"0px",:align=>"absmiddle"),:url => {:controller=>"advertisments",:action => "comments",:id => @advertisment},:update => "details",:html=>{:onclick=>"showadtabs(document, 'li', 'resume1-tab-selected','');$('comments').setAttribute('class','resume1-tab-selected','');"} -%>                        </div>
                    </div>
                    <div class="resume1-middle">
                      <%unless @field_values.nil?%>
                      <%@field_values.each do |field_value| -%>
                        <div class="resume1-fields">
                            <div class="resume1-fields-text">
                                <%=field_value[0].gsub("_"," ").capitalize -%>:
                            </div>
                            <div class="resume1-fields-value">
                               <%=field_value[1] -%>
                            </div>
                        </div>
                              <%end -%>
                             <%end -%>
                             <hr />
                        <div class="resume1-fields">
                            <div class="resume1-fields-text">
                                Posted on:
                            </div>
                            <div class="resume1-fields-value">
                                Friday, 12 June, 2009
                            </div>
                        </div>
                        <div class="resume1-fields">
                            <div class="resume1-fields-text">
                                Posted by:
                            </div>
                            <div class="resume1-fields-value">
                                <a href="">Nishant Dev</a><br/>
								Student<br/>
								Delhi Unversity 
                            </div>
                        </div>
</div>